'use strict';

module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    
    const StatusSchema = new Schema({
        userid:   { type: Number },
        username: { type: String },
        status:   { type: Number },
        group:    { type: Number },
        commitTs: { type: Number },
    });

    return mongoose.model('Status', StatusSchema, 'status', { cache: false });
}